package com.spzx.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@TableName(value = "category_brand")
@Schema(description = "分类品牌")
public class CategoryBrand extends BaseEntity {
    //@NotNull(message = "品牌id不能为空哦")
    @TableField(value = "brand_id")
    private Long brandId;
    //@NotNull(message = "商品分类id不能为空哦")
    @TableField(value = "category_id")
    private Long categoryId;
    //@NotEmpty(message = "品牌名称不能为空哦")
    @TableField(exist = false)
    @Schema(description = "品牌名称")
    private String brandName;
    //@NotEmpty(message = "商品分类名称不能为空哦")
    @TableField(exist = false)
    @Schema(description = "商品分类名称")
    private String categoryName;
    //@NotEmpty(message = "商品分类名称不能为空哦")
    @TableField(exist = false)
    @Schema(description = "三级Id")
    private List<Long> categoryIdList;
    @TableField(exist = false)
    private String brandLogo;

}
